package server.utils;

/**
 * All the commands to and from server;
 * QUIT - end session
 * ERROR - for sending errors, not command for doing smth
 * OK - confirmation, not command for doing smth
 * INFO - informative messages, not command for doing smth
 * CHAT - for chatting between clients
 * TURNCHANGE - changes clients waiting for turn. True if it has to wait, 
 * 				false if not
 * EDITPLAYER - player connected to server or left, add/remove it 
 * 				from table and print commandvalue for info.
 * SENDCARD - send a card, card is in field "card".
 * BET - send bet. If BET > 0 then bets some money. 
 * 				   If == 0 then does not bet. 
 * 				   If < 0 folds.
 * DEALTABLE - server deals card(s) to table, sends that card
 * DEALMONEY - server deals money(to the winners)
 * ENDOFROUND - round ended. if by that time no money has come to client
 * 				he won no money.
 * SENDALLDATA - server sends sync data to client.
 * PLAYERS - sends all other players already in server.
 * @author SIIM
 *
 */
public enum CommandType {
	QUIT, ERROR, OK, INFO, CHAT, TURNCHANGE, EDITPLAYER, SENDCARD, BET,
	DEALTABLE, DEALMONEY, ENDOFROUND, SENDALLDATA, PLAYERS
}
